package com.chefu.client.system;

import com.chefu.common.pojo.R;
import com.chefu.system.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("system-service")
public interface SystemClient {

    @GetMapping("/system/user/query")
    public User findUserByNameAndPwd(@RequestParam("username") String username, @RequestParam("password") String password);
}
